﻿﻿//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NFinal MVC framework
//        Filename :{Index}.cs
//        Description :模板提示类
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.nfinal.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication1.DDD.Views.Default.IndexController
{
    public partial class Index : System.Web.UI.Page
    {
		//数据库模型
        public class __Index_louPans__:NFinal.Struct
		{
			public System.Int32 ID;
			public System.String MingCheng;
			public System.Decimal? JiaGe;
			public System.String ZhuTui;
			public System.String tjType;
			public System.String ZhuangTai;
			public System.Double Lat;
			public System.Double Lng;
			public System.String JieShao;
			public System.String WuYe;
			public System.String PinPai;
			public System.String SheJiLiNian;
			public System.String FangXing;
			public System.String LeiXing;
			public System.String Img;
			public System.String DiZhi;
			public System.Decimal? KanFangJiaGe;
			public System.Int32? PingJiaNum;
			public System.Double? FanXian1;
			public System.Double? FanXian2;
			public System.Double? FanXian3;
			public System.String InfoImgs;
			public System.String videoPath;
			public System.String HuoDong;
			public System.Int32? PaiXu;
			public System.Double? ZongDianWei;
			public System.Int32 FangXingCode;
			public System.Int32 LeiXingCode;
			public System.Int32 JiaGeCode;
			#region 写Json字符串
			public override void WriteJson(System.IO.TextWriter tw)
			{
				tw.Write("{");
						tw.Write("\"ID\":");
						tw.Write(ID.ToString());
						tw.Write(",");
						tw.Write("\"MingCheng\":");
							tw.Write("\"");
							tw.Write(MingCheng);
							tw.Write("\"");
						tw.Write(",");
						tw.Write("\"JiaGe\":");
						tw.Write(JiaGe==null?"null" : JiaGe.ToString());
						tw.Write(",");
						tw.Write("\"ZhuTui\":");
						if(ZhuTui==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(ZhuTui);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"tjType\":");
						if(tjType==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(tjType);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"ZhuangTai\":");
						if(ZhuangTai==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(ZhuangTai);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"Lat\":");
						tw.Write(Lat.ToString());
						tw.Write(",");
						tw.Write("\"Lng\":");
						tw.Write(Lng.ToString());
						tw.Write(",");
						tw.Write("\"JieShao\":");
						if(JieShao==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(JieShao);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"WuYe\":");
						if(WuYe==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(WuYe);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"PinPai\":");
						if(PinPai==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(PinPai);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"SheJiLiNian\":");
						if(SheJiLiNian==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(SheJiLiNian);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"FangXing\":");
						if(FangXing==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(FangXing);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"LeiXing\":");
						if(LeiXing==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(LeiXing);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"Img\":");
						if(Img==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(Img);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"DiZhi\":");
						if(DiZhi==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(DiZhi);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"KanFangJiaGe\":");
						tw.Write(KanFangJiaGe==null?"null" : KanFangJiaGe.ToString());
						tw.Write(",");
						tw.Write("\"PingJiaNum\":");
						tw.Write(PingJiaNum==null?"null" : PingJiaNum.ToString());
						tw.Write(",");
						tw.Write("\"FanXian1\":");
						tw.Write(FanXian1==null?"null" : FanXian1.ToString());
						tw.Write(",");
						tw.Write("\"FanXian2\":");
						tw.Write(FanXian2==null?"null" : FanXian2.ToString());
						tw.Write(",");
						tw.Write("\"FanXian3\":");
						tw.Write(FanXian3==null?"null" : FanXian3.ToString());
						tw.Write(",");
						tw.Write("\"InfoImgs\":");
						if(InfoImgs==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(InfoImgs);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"videoPath\":");
						if(videoPath==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(videoPath);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"HuoDong\":");
						if(HuoDong==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(HuoDong);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"PaiXu\":");
						tw.Write(PaiXu==null?"null" : PaiXu.ToString());
						tw.Write(",");
						tw.Write("\"ZongDianWei\":");
						tw.Write(ZongDianWei==null?"null" : ZongDianWei.ToString());
						tw.Write(",");
						tw.Write("\"FangXingCode\":");
						tw.Write(FangXingCode.ToString());
						tw.Write(",");
						tw.Write("\"LeiXingCode\":");
						tw.Write(LeiXingCode.ToString());
						tw.Write(",");
						tw.Write("\"JiaGeCode\":");
						tw.Write(JiaGeCode.ToString());
				tw.Write("}");
			}
			#endregion
		}
		//函数内变量
        public class Index_AutoComplete:Controller
        {
			//参数变量
					public int jiage;
					public int fangxing;
					public int leixing;
					public int p;
			//数据库变量
						public NFinal.List<__Index_louPans__> louPans;
			//一般变量
				public NFinal.Page page;
			//DAL函数声明变量
        }
		//变量存储类,用于自动完成.
        public Index_AutoComplete ViewBag = new Index_AutoComplete();
    }
}